package com.longdaji.decoration.data.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by longtao on 2018/3/15.
 */

public class PayRequestBean implements Parcelable {
    private String goodsId;
    private String goodsName;
    private double goodsPrice;
    private String isPackage;
    private int productNum;
    private String skuId;
    private String cartId;

    @Override
    public String toString() {
        return "PayRequestBean{" +
                "goodsId='" + goodsId + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPrice=" + goodsPrice +
                ", isPackage='" + isPackage + '\'' +
                ", productNum=" + productNum +
                ", skuId='" + skuId + '\'' +
                '}';
    }

    public PayRequestBean() {
    }

    protected PayRequestBean(Parcel in) {
        goodsId = in.readString();
        goodsName = in.readString();
        goodsPrice = in.readDouble();
        isPackage = in.readString();
        productNum = in.readInt();
        skuId = in.readString();
        cartId = in.readString();
    }

    public static final Creator<PayRequestBean> CREATOR = new Creator<PayRequestBean>() {
        @Override
        public PayRequestBean createFromParcel(Parcel in) {
            return new PayRequestBean(in);
        }

        @Override
        public PayRequestBean[] newArray(int size) {
            return new PayRequestBean[size];
        }
    };

    public String getCartId() {
        return cartId;
    }

    public void setCartId(String cartId) {
        this.cartId = cartId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getIsPackage() {
        return isPackage;
    }

    public void setIsPackage(String isPackage) {
        this.isPackage = isPackage;
    }

    public int getProductNum() {
        return productNum;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(goodsId);
        parcel.writeString(goodsName);
        parcel.writeDouble(goodsPrice);
        parcel.writeString(isPackage);
        parcel.writeInt(productNum);
        parcel.writeString(skuId);
        parcel.writeString(cartId);
    }
}
